#ifndef __SPRITE_H__
#define __SPRITE_H__

#include <d3d9.h>
#include <d3dx9.h>

class CSprite {
protected: 
	LPDIRECT3DTEXTURE9 _Image;
	LPD3DXSPRITE _SpriteHandler;

public: 
	CSprite::CSprite(LPD3DXSPRITE SpriteHandler, LPWSTR FilePath);
	
	// Render current sprite at location (X,Y) at the target surface
	void Render(LPDIRECT3DSURFACE9 Target, float X, float Y, int w, int h,int lv, int anim,int movingWay,int blend);	
	void Render(LPDIRECT3DSURFACE9 Target, float X, float Y, int Row, int Col);
	void Render(LPDIRECT3DSURFACE9 Target, float X, float Y, int num);
	void Render(LPDIRECT3DSURFACE9 Target, float X, float Y, int w, int h, int Col);
	void Render(LPDIRECT3DSURFACE9 Target, float,  float , int , int , int , int);
	void Render(LPDIRECT3DSURFACE9 Target);
	void Render(LPDIRECT3DSURFACE9 Target, int x, int y);
	~CSprite();
};

#endif